//---------------------------------------------------------------------------

#include <vcl.h>
#include <windows.h> 
#include "../../xdefines.h"
#include "DownloadThread.h"
#pragma argsused
extern   "C"   __declspec(dllexport) TThread * NewDown(TDownARG * args);
extern   "C"   __declspec(dllexport) int GetDLLType();   
extern   "C"   __declspec(dllexport) int GetDownloaderType();

int GetDLLType()
{
  return X_DOWNLOADER;
}  

int GetDownloaderType()
{
  return X_HTTP;
}

TThread * NewDown(TDownARG * args)
{
  DownloadThread * trd=new DownloadThread(args->AOwner ,args->lvItem,args->FileName ,args->URL);
  return trd;
}

int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
  return 1;
}
//---------------------------------------------------------------------------
 